home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
utils
/
tweak16b
/
detect.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-26
|
690b
|
29 lines
#ifndef _DETECT_HPP
#define _DETECT_HPP
#include "misc.hpp"
#include "regtable.hpp"
#include "vgalib.hpp"
struct ModeInfo
{
enum EmulType { EM_CONFLICT, HERC, CGA, VGA };
enum ColorsType { COLOR2=2, COLOR4=4, COLOR16=16, COLOR256=256 };
enum AGType { AG_CONFLICT, ALPHA, GRAPHICS };
EmulType emulation;
AGType alphaGraph;
ColorsType colors;
int hClocks, vClocks, xres, yres, lineClocks, spareClocks, adrOffset,
hPixelsPerClock, vxres, vyres, vxresBytes;
float xpages, ypages;
Boolean countBy2, chain4;
ModeInfo(RegisterTable &rt) { detectFrom(rt); }
void detectFrom(RegisterTable &);
GraphicsAPI *getGraphicsAPI();
void show();
};
#endif